package com.arges.controller;

import org.springframework.util.CollectionUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * TODO
 * </p>
 *
 * @author fanweitao
 * @date 2023/02/06
 */
public class Test7 {

    public static void main(String[] args) {
        List<String> list1 = new ArrayList<String>();
        List<String> list2 = null;
        System.out.println("结果1:" + CollectionUtils.isEmpty(list1));
        System.out.println("结果2:" + CollectionUtils.isEmpty(list2));
        System.out.println("结果3:" + list1.isEmpty());
        System.out.println("结果4:" + list2.isEmpty());

    }
}
